#ifndef ChooseApplicationDialog_h
#define ChooseApplicationDialog_h

#include "MySelectionDialog.h"

#include <akntabobserver.h> 

class CAknSingleStyleListBox;

class CChooseApplicationDialog: public CMySelectionListDialog, public MAknTabObserver
{
public:
	static TBool ShowDialogL( RArray< TUid >& aMenuItems );
	~CChooseApplicationDialog();

private:
	virtual void PreLayoutDynInitL();

	#ifndef __S60_50__
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
#endif

private:
	void TabChangedL( TInt aIndex );
	void ShowTabsL();
	void HideTabsL();

private:
	CIdle* iLoadContactsTimer;
	TInt iLastIconInd;
	TBool iHiddenAppsOnly;

private:
	void LoadItemsL();

private:
	CChooseApplicationDialog( TInt &aIndex, CDesCArray *aArray, RArray< TUid >& aMenuItems );

};

#endif

